package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.PlatformProject;
import com.example.demo.entity.ResearchMember;
import com.example.demo.mapper.ResearchMemberMapper;
import com.example.demo.service.ResearchMemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lzc
 * @date 2021/11/10 15 47
 * discription
 */
@Slf4j
@Service
public class ResearchMemberServiceImpl extends ServiceImpl<ResearchMemberMapper, ResearchMember> implements ResearchMemberService {
    @Override
    public List<ResearchMember> findByResearchId(Integer researchId) {
        QueryWrapper<ResearchMember> queryWrapper = new QueryWrapper<ResearchMember>().
                eq(researchId != null, "research_id", researchId);

        return super.list(queryWrapper);
    }
}
